package com.ruoyi.hk.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.hk.mapper.HSysUserMapper;
import com.ruoyi.hk.domain.HSysUser;
import com.ruoyi.hk.service.IHSysUserService;

/**
 * 医生信息审核Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-15
 */
@Service
public class HSysUserServiceImpl implements IHSysUserService
{
    @Autowired
    private HSysUserMapper HSysUserMapper;

    /**
     * 查询医生信息审核
     * 
     * @param userId 医生信息审核主键
     * @return 医生信息审核
     */
    @Override
    public HSysUser selectSysUserByUserId(Long userId)
    {
        return HSysUserMapper.selectSysUserByUserId(userId);
    }

    /**
     * 查询医生信息审核列表
     * 
     * @param HSysUser 医生信息审核
     * @return 医生信息审核
     */
    @Override
    public List<HSysUser> selectSysUserList(HSysUser HSysUser)
    {
        return HSysUserMapper.selectSysUserList(HSysUser);
    }

    /**
     * 新增医生信息审核
     * 
     * @param HSysUser 医生信息审核
     * @return 结果
     */
    @Override
    public int insertSysUser(HSysUser HSysUser)
    {
        HSysUser.setCreateTime(DateUtils.getNowDate());
        return HSysUserMapper.insertSysUser(HSysUser);
    }

    /**
     * 修改医生信息审核
     * 
     * @param HSysUser 医生信息审核
     * @return 结果
     */
    @Override
    public int updateSysUser(HSysUser HSysUser)
    {
        HSysUser.setUpdateTime(DateUtils.getNowDate());
        return HSysUserMapper.updateSysUser(HSysUser);
    }

    /**
     * 批量删除医生信息审核
     * 
     * @param userIds 需要删除的医生信息审核主键
     * @return 结果
     */
    @Override
    public int deleteSysUserByUserIds(Long[] userIds)
    {
        return HSysUserMapper.deleteSysUserByUserIds(userIds);
    }

    /**
     * 删除医生信息审核信息
     * 
     * @param userId 医生信息审核主键
     * @return 结果
     */
    @Override
    public int deleteSysUserByUserId(Long userId)
    {
        return HSysUserMapper.deleteSysUserByUserId(userId);
    }
}
